import './index.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import {BrowserRouter as Router, Route, Link} from 'react-router-dom'
import App from './App'

console.log('process.env.NODE_ENV:', process.env.NODE_ENV); //development
//@ts-ignore
console.log('IS_DEV:', IS_DEV); //true
//@ts-ignore
console.log('o:', o); /*{a: 1,b: true}*/
//@ts-ignore
console.log('bool1:', bool1); //true

function render() {
  ReactDOM.render((
    <Router>
      <App>
        <Link to={'/one'}>one</Link>
        <Link to={'/two'}>two</Link>
        <Route path='/one' component={() => <div>one</div>}/>
        <Route path='/two' component={() => <div>two</div>}/>
      </App>
    </Router>
  ), document.getElementById('root'))
}

render();
